<?php

class UploadForm extends CFormModel {

    public $year;
    public $month;

    public function rules() {
        return array(
            array('year, month', 'required'),
            array('year, month', 'numerical', 'integerOnly' => true),
        );
    }

    /**
     * @return array customized attribute labels (name=>label)
     */
    public function attributeLabels() {
        return array(
            'year' => 'Upload Year',
            'month' => 'Upload Month',
        );
    }
    
}
